package cn.zyb.user.contant;

/**
 * @author zyb
 * @version 1.0.0
 * @date 2022年07月19日 16:53:52
 * @packageName cn.zyb.user.contant
 * @className WxConstants
 * @describe TODO
 */
public class WxConstants {
  public static final String APPID = "wxd853562a0548a7d0";
  public static final String SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";

  //第二个请求：通过code获取token和openid
  public static final String GET_ACK_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
  /* {
       "access_token":"ACCESS_TOKEN",
           "expires_in":7200,
           "refresh_token":"REFRESH_TOKEN",
           "openid":"OPENID",
           "scope":"SCOPE",
           "unionid": "o6_bmasdasdsad6_2sgVt7hMZOPfL"
   }*/
  //第三个请求：通过token和openid获取微信用户信息
  public static final String GET_USER_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";
    /*{
        "openid":"OPENID",
            "nickname":"NICKNAME",
            "sex":1,
            "province":"PROVINCE",
            "city":"CITY",
            "country":"COUNTRY",
            "headimgurl": "http://wx.qlogo.cn5WKbERQQ4eMsv84eavHiaiceqxibJxCfHe/0",
        "unionid": " o6_bmasdasdsad6_2sgVt7hMZOPfL"

    }*/
}
